package com.jichangxiu.server.platform.entity.map;

import com.jichangxiu.server.platform.entity.dto.PlatformDeptRoleQueryDto;
import com.jichangxiu.server.platform.entity.po.PlatformDeptRole;
import org.mapstruct.Builder;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * PlatformDeptRoleBasic:
 *
 * @author Jcx
 * @create 2023-03-26 13:02
 */
@Mapper(builder = @Builder(disableBuilder = true))
public interface PlatformDeptRoleBasic {

    public PlatformDeptRoleBasic INSTANCE = Mappers.getMapper(PlatformDeptRoleBasic.class);

    /**
     * 转换 PlatformDeptRoleQueryDto 列表
     *
     * @param platformDeptRoleList 数据传输对象列表
     * @return 数据库对象列表
     */
    public List<PlatformDeptRoleQueryDto> toPlatformDeptRoleQueryDtoList(List<PlatformDeptRole> platformDeptRoleList);

}
